﻿using ML.Utils;
using System;
namespace ML.Entity
{
    /// <summary>
    /// 商户结算实体
    /// </summary>
    public class SettlementEntity
    {
        /// <summary>
        /// 主键
        /// </summary>		
        public string Id { get; set; } = Guid.NewGuid().ToString("N");

        /// <summary>
        /// 商户Id
        /// </summary>		
        public string MerchantId { get; set; }

        /// <summary>
        /// 结算收款方式选择
        /// </summary>
        public string ReceivablesId { get; set; }

        /// <summary>
        /// 结算号
        /// </summary>		
        public string Number { get; set; }

        /// <summary>
        /// 结算订单金额
        /// </summary>		
        public decimal OrderAmount { get; set; }

        /// <summary>
        /// 能够结算的金额
        /// </summary>		
        public decimal CanSettlementAmount { get; set; }

        /// <summary>
        /// 实际结算的金额
        /// </summary>		
        public decimal ActSettlementAmount { get; set; }

        /// <summary>
        /// 创建结算人
        /// </summary>		
        public string Creater { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>		
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 结算操作人
        /// </summary>		
        public string Optioner { get; set; }

        /// <summary>
        /// 结算状态
        /// </summary>		
        public int SettlementStatus { get; set; } = (int)SettlementStatu.submitted;

        /// <summary>
        /// 结算时间
        /// </summary>		
        public DateTime? SettlementTime { get; set; }

        /// <summary>
        /// 失败备注
        /// </summary>
        public string Remark { get; set; }
    }
}